home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8891 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: nntp.cs.umd.edu!league
  2. From: league@cs.umd.edu (Christopher League)
  3. Newsgroups: comp.lang.java,comp.lang.c
  4. Subject: Re: Highlighted Stroustrup by Joy or van Hoff?
  5. Date: 06 Mar 1996 19:43:11 GMT
  6. Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
  7. Message-ID: <LEAGUE.96Mar6144311@snocap.cs.umd.edu>
  8. References: <elharo-0603961030310001@elharo.dialup.inch.com>
  9.     <tad1-0603961128020001@tad1.cit.cornell.edu>
  10. NNTP-Posting-Host: snocap.cs.umd.edu
  11. In-reply-to: tad1@cornell.edu's message of Wed, 06 Mar 1996 11:28:02 -0500
  12.  
  13. --------
  14. In article <elharo-0603961030310001@elharo.dialup.inch.com>,
  15. elharo@sunsite.unc.edu (Elliotte Rusty Harold) wrote:
  16. > someone showed off his copy of the C++ Programming Language in which he
  17. > was highlighting all the parts Java programmers didn't need to worry
  18. > about. 
  19.  
  20. A neat idea...
  21.  
  22. Even before I had heard of Java, I thought about going through
  23. Kernighan & Ritchie and hilighting every occurence of the word
  24. "implementation-dependent".  I was most inspired to do it when I
  25. discovered a "bug" that caused
  26.  
  27.     printf("%c%c%c", getchar(), getchar(), getchar());
  28.  
  29. to print "ABC" when compiled by gcc and "CBA" when compiled by
  30. Borland.  (I typed ABC<Return><EOF> as input to both programs.) 
  31.  
  32. `Chris
  33. --
  34. _____
  35. Christopher League            league@cs.umd.edu
  36. University of Maryland            http://www.cs.umd.edu/users/league
  37. Department of Computer Science        PGP Public Key available
  38.